<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <meta name="referrer" content="no-referrer"/>
        <link rel="icon" href="https://static.nowcoder.com/images/logo_87_87.png"/>
        <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
              crossorigin="anonymous">
        <link rel="stylesheet" th:href="@{/css/global.css}"/>
        <title>牛客网-个人主页</title>
    </head>
    <body>
        <div class="nk-container">
            <!-- 头部 -->
            <div th:replace="~{index::headerMark}"></div>

            <!-- 内容 -->
            <div class="main">
                <div class="container">
                    <!-- 选项 -->
                    <div class="position-relative">
                        <ul class="nav nav-tabs">
                            <li class="nav-item">
                                <a class="nav-link" th:href="@{|/user/profile/${userId}|}">个人信息</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" th:href="@{|/user/myPost/${userId}|}">个人帖子</a>
                            </li>
                            <li class="nav-item">
                                <span class="nav-link active">个人回复</span>
                            </li>
                        </ul>
                        <a th:href="@{|/user/profile/${userId}|}" class="text-muted position-absolute rt-0">返回个人主页&gt;</a>
                    </div>
                    <!-- 我的回复 -->
                    <div class="mt-4">
                        <h6><b class="square"></b> 回复的帖子(<i th:text="${commentRows}">379</i>)</h6>
                        <ul class="list-unstyled mt-4 pl-3 pr-3">
                            <li class="border-bottom pb-3 mt-4" th:each="coms:${myComments}">
                                <div class="font-size-16 text-info">
                                    <a th:href="@{|/discuss/details/${coms.postId}|}" class="text-info" th:utext="${coms.content}">备战春招，面试刷题跟他复习，一个月全搞定！</a>
                                </div>
                                <div class="mt-1 font-size-14" th:utext="${coms.comment.content}">
                                    顶顶顶!
                                </div>
                                <div class="text-right font-size-12 text-muted">
                                    回复于
                                    <b th:text="${#dates.format(coms.comment.createTime,'yyyy-MM-dd HH:mm:ss')}">2019-04-15
                                        10:10:10</b>
                                </div>
                            </li>
                        </ul>
                        <!-- 分页 -->
                        <div th:replace="~{index::laypage}"></div>
                    </div>
                </div>
            </div>

            <!-- 尾部 -->
            <div th:replace="~{index::footerMark}"></div>
        </div>

        <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
                crossorigin="anonymous"></script>
        <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
                crossorigin="anonymous"></script>
        <script th:src="@{/js/global.js}"></script>
    </body>
</html>
